<?php
    require "sql.php";
    $str3="insert into log(log_name,log_time,log_kind) values('".$_COOKIE['username']."','".date('Y-m-d H:i:s')."','账户注销')";
    $conn->query($str3);
    setcookie("username", "", time()-3600);
    setcookie("email", "", time()-3600);
    echo "<script>alert('注销成功！')</script>";
    echo "<script>window.location.href='./'</script>";
?>